package HomeWork;

import java.util.Scanner;

public class money {
    public static void main(String[] args) {
        System.out.println("请输入存款金额");
        Scanner input = new Scanner(System.in);
        double deposit = input.nextDouble();
        System.out.println("活期一年本金总计："+Math.round(deposit+deposit*0.0035));
        System.out.println("活期两年本金总计："+Math.round(deposit+deposit*0.0035*2));
        System.out.println("定期一年本金总计："+Math.round(deposit+deposit*0.015));
        System.out.println("定期两年本金总计："+Math.round(deposit+deposit*0.021));

    }
}
